package org.coding.springbootdemocommandline.relock;

public class ReLockDemo {

    public synchronized void functonA(){
        System.out.println("functionA");
        functionB();
    }

    public synchronized void functionB(){
        System.out.println("functionB");
    }
}
